/*
 * @Author: lhl 1079161148@qq.com
 * @Date: 2024-04-05 13:06:15
 * @LastEditors: lhl 1079161148@qq.com
 * @LastEditTime: 2024-04-06 22:20:13
 * @FilePath: \net-cloud-music\src\api\login.ts
 * @Description: 登录相关api
 */
import request from '@/utils/request'

export interface loginParams {
  phone: string
  password: string
}

// post 请求示例
export const userLogin = (params: loginParams) => {
  return request({
    url: '/login/cellphone',
    method: 'get',
    params
  })
}

// get 请求示例
export const userInfo = () => {
  return request({
    url: '/user/account',
    method: 'post'
  })
}
